package com.lxl.xm.chat;

import cn.hutool.http.HttpUtil;

import java.util.HashMap;

public class ZhiPuClient {

    private static final String BASE_URL = "http://localhost:5000";

    public String chatWithZhiPu(String question){
        HashMap<String,Object> params = new HashMap<>();
        params.put("question",question);
        return HttpUtil.get(BASE_URL+"/chat/glm/retrieval",params);
    }
}
